package org.haredot.dto;

import java.util.ArrayList;
import java.util.List;

public class TreeNode {
    /**
     * 树节点ID
     */
    private String id ;
    /**
     * 树节点名
     */
    private String title ;
    /**
     * 是否展开
     */
    private boolean expand = true ;
    /**
     * 是否勾选
     */
    private boolean checked ;
    /**
     * 数据库中的 ID
     */
    private Long tid ;
    /**
     * 子节点
     */
    private List<TreeNode> children = new ArrayList<>();

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isExpand() {
        return expand;
    }

    public void setExpand(boolean expand) {
        this.expand = expand;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getTid() {
        return tid;
    }

    public void setTid(Long tid) {
        this.tid = tid;
    }
}
